
import React from 'react'
import Home from 'assets/images/Home.png'

class Footer extends React.Component{
	constructor(props){
		super(props)
		this.state = {
			hrefLink:'',
			Position:'Footer_buttom',
		}
		this.Change=this.Change.bind(this);
	}
	componentWillReceiveProps(props){
		if(props.valueButton =='show' )
			this.setState({Position:'Footer_Transfrom'})
	}
	
	Change(){
		this.setState({
			 Position:'Footer_buttom',
			 hrefLink:'hide'},function(){
			 this.props.Button(this.state.hrefLink);
		});
	}
	
	render(){
		return(
			<div className={this.state.Position} >
				<img  src={Home} 
					  onClick={this.Change} />
			</div>
		)
	}
}

export default Footer
